package com.example.myspringframework.test;

import com.example.myspringframework.beans.BeansException;
import com.example.myspringframework.beans.factory.FactoryBean;

public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws BeansException {
        return new User("lxy", 18);
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
